package controller

import (
	"context"
	"xr-game-server/core/httpserver"
	"xr-game-server/dto/indexdto"
	"xr-game-server/module/index"
)

type IndexController struct {
}

func initIndex() {
	httpserver.RegAPI("/index", new(IndexController))
}

func (a *IndexController) GetAll(ctx context.Context, req *indexdto.IndexReq) (resp *indexdto.IndexRes, err error) {
	return index.GetAll(ctx, req)
}
